<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>project</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="css/style.css" />
</head>
<body>
	<div class="container">
		<!--header start-->
		<div class="header">
			<h1 class="logo" style="margin-right:600px"><a href="main.jspx">项目管理系统</a></h1>
			<c:if test="${sessionScope.employee.name=='superman' }">
				<a href="quit.jspx" class="btn btn-info">
				<i class="icon-repeat icon-white"></i>退出本次登陆</a>
			</c:if>
		</div>
		<!--header end-->
		<div class="content">
			<div class="row">
				<div class="span9">
					<div class="list">
						<span><i class="icon-list"></i>项目列表</span>
						<c:if test="${sessionScope.employee.name=='superman' }">
							<a href="addproject.jspx" class="btn btn-warning">
							<i class="icon-plus icon-white"></i>增加一个新项目</a>
						</c:if>
					</div>
					<ul class="listcontent">
						<c:if test="${sessionScope.employee.name=='superman'}">
							<c:forEach items="${requestScope.allProject}" var="proj">
								<li class="title"><i class="icon-arrow-right"></i><a href="projectedit.jspx?id=${proj.id }">${proj.name}</a></li>
								<li class="desc">${proj.desc}</li><br/>
							</c:forEach>
							<c:if test="${empty allProject}">
							   <li>你目前还没有参与任何项目</li>
							</c:if>
						</c:if>
						<c:if test="${sessionScope.employee.name!='superman'}">
							<c:forEach items="${sessionScope.list}" var="proj">
								<li class="title"><i class="icon-arrow-right"></i><a href="main.jspx?id=${proj.id }">${proj.name}</a></li>
								<li class="desc">${proj.desc}</li><br/>
							</c:forEach>
							<c:if test="${empty list}">
							   <li>你目前还没有参与任何项目</li>
							</c:if>
						</c:if>
						
						
					</ul> 
					
				</div>
				<div class="span3"></div>
			</div>
		</div>
		<div class="footer">
			<p>Copyright © 2013 Happy版权所有</p>
		</div>
	</div>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</body>
</html>
